import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', component: () => import('@/views/shopping/ShoppingIndex.vue') },
    { path: '/login', component: () => import('@/views/login/LoginPage.vue') },
    { path: '/item/:id', component: () => import('@/views/shopping/ItemDetail.vue') },
    { path: '/cart', component: () => import('@/views/shopping/CartPage.vue') },
    { path: '/pay', component: () => import('@/views/shopping/PayPage.vue') },
    { path: '/hot', component: () => import('@/views/shopping/HotPage.vue') }
  ]
})

export default router
